package com.tanhua.admin.sso.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Don
 */
@RestController
@RequestMapping("system/users")
public class UserController {

    /**
     * 用户登录接口
     *
     * @param map
     * @return
     */
    @PostMapping("login")
    public ResponseEntity<Void> login(@RequestBody Map<String, String> map) {
        System.out.println(map.get("username"));
        System.out.println(map.get("password"));
        System.out.println(map.get("verificationCode"));
        System.out.println(map.get("uuid"));
        return null;
    }
}
